<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>底部Tarbar</title>
    <style>
        /* 清除默认样式 */
        *{padding: 0;margin: 0;}

        .g-footer{
            /* 设置当前div为弹性盒子布局 */
            display: flex; 
            width: 100%;
            height: 60px;
            background-color: pink;

            justify-content: space-around;
            align-items: center;
        }

        .active{
            color: red;
        }

    </style>
</head>
<body>
    <div class="g-footer">
        <div >首页</div>
        <div class="active">分类</div>
        <div>购物车</div>
        <div>我的</div>
    </div>
</body>
</html>